home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1994 June
/
1994-06b.d64
/
super-alarm iii
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
13KB
|
399 lines
23 print"[147]":poke53280,0:poke53281,0
24 print tab(8)"[211][213][208][197][210]-[193][204][193][210][205][146][150] version 3"
25 printtab(7)"[151]p[158]ub[153]li[129]c[151] d[156]om[155]a[129]i[154]n"
26 print" [154][163][155][163][153][163][150][163][155][163][158][163] [163][153][163][155][163][149][163][150][163][163]"
27 print"[158]updated on [202]anuary 8, 1989"
28 print"[156]created on [207]ctober 20, 1988"
29 print"[159]by:[203]irk [205]ook"
30 print"[159]with help from:[153][208]eter [200]itchcock"
31 print
34 print"[212]his program uses military time"
35 print
40 print"[212]o set time use 6 digits."
45 print"example: 8:05 am would be 080500"
50 print" 2:10 pm would be 141000"
54 print
55 print
56 print"[158][[198][158]]ile wake"
60 print"[158][[201][158]]nstructions"
61 print"[158][[205][158]]usic test/player"
62 print"[158][[193][158]]larm test"
70 print"[158][[215][158]]ake to music [193][206][217] [159].mus file(s)
71 [153]"sys[(NULL)sys]eircing alarm"
72 [153]"sys[lensys]lock only"
73 [153]"sys[(NULL)sys]uit
74 get z$:if z$=""then 74
75 if z$="w"then goto 86
76 if z$="i"then goto 2920
77 if z$="f"then goto 3049
78 if z$="q"then goto 3020
80 if z$="c"then goto 90
81 if z$="p"then goto 84
82 if z$="m"then goto 219
83 if z$="a"then goto 190
84 input"[208]lease set the time to wake up.";x$
85 goto 150
86 input"[208]lease set the time to wake up.";x$
90 input"[208]lease set time";ti$
91 input"[151][215]ant to see the clock";a$
92 if a$="n"then poke646,0
93 if a$="y"then poke646,8
95 print"[147]"
100 print"[147]";spc(15)"";ti$
105 if ti$=x$ then gosub 120
110 print"[147]";spc(15)"";ti$
115 goto 100
120 poke 54296,15
130 restore
131 goto 219
150 input"[208]lease set time";ti$
151 input"[152][215]ant to see clock";a$
152 if a$="y"then poke646,13
153 if a$="n"then poke646,0
155 print"[147]"
160 print"[147]";spc(15)"";ti$
165 if ti$=x$ then gosub 180
170 print"[147]";spc(15)"";ti$
175 goto 160
180 poke 54296,15
185 restore
190 poke 19,54:for i=54272to54296:pokei,0:next:poke54272,12
191 print"[147][215][193][203][197][160][213][208]!!!"
192 poke54296,15:poke54277,0:poke54278,240:poke54275,8:poke54276,65
193 poke54273,1
194 poke53280,0:poke53281,0
195 for i=1 to 100:poke54273,i:next
196 poke53280,2:poke53281,2
197 for i=100 to 1 step-1:poke54273,i:next
198 goto194
219 goto 220
220 goto230
230 dimpl$(144),pn$(144),se(144),tx$(5):dn=8:sa=780:sx=781:sy=782:sp=783
240 gosub2160
250 ov$=""
260 do$="":ro$="[146]":u$="[145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145]"
270 bl$=" "
280 o$=" "
290 oo$=" "
300 iff=0thenprintchr$(147)
310 gosub590:iff=1then370
320 print"[147]";:poke53280,0:poke53281,0
330 fors=55296to55335:pokes,0:pokes+960,0:next
340 fors=1024to1063:pokes,244:pokes+960,244:next
350 print"[144]";:a$="":gosub610
360 printdo$;:a$="":gosub610
370 print"":iff=0then1250
375 print"[147]"
377 print""
380 wait56320,16
390 pokess,7:q=0
400 fors=55296to55335:co=int(1+rnd(1)*14):pokes,co:pokes+(999-q),co:q=q+2:next
410 print"";:iff=0thengosub640
420 print"[146]";:f=1
430 print"";:a$=bl$:gosub610
440 print"";:a$=bl$:gosub610
450 print"[145]";:forx=1to5:printleft$(do$,10+x);:a$=tx$(x):gosub610:next
460 print" "
470 print"";:co=149
480 forc=1to9
481 poke 53281,0:poke 53280,0
482 fordert=1to01:nextdert
483 poke 53281,1:poke 53280,1
490 co=int(1+rnd(1)*14):poke646,co:printleft$(do$,c+1);do$;left$(u$,c);
500 getre$:ifre$=" "thenpokess,0:sysdp:r=0:forl=54276to54296:pokel,0:next
510 ifre$=" "then870
520 ifre$<>"^"then550
530 pokess,0:sysdp:forl=54276to54296:pokel,0:next:f=0:sd=a
540 gosub590:goto1250
550 next:print"";
560 ifpeek(ss)then480
570 sysdp
580 forl=54276to54296:pokel,0:next:goto870
590 print"";:forjk=1to23:printbl$;" ";:next
600 print"";chr$(142):return
610 printspc(20-len(a$)/2)a$;:return
620 return
630 return
640 gosub590:print"[146]";
650 poke646,4:gosub610:gosub620:gosub590:q=0
660 fors=55296to55335:co=int(1+rnd(1)*14):pokes,co:pokes+(999-q),co:q=q+2: next
670 print"[158]":a$="reading directory":gosub610:print
680 x=1:open15,8,15,"i0":close15:a$=""
690 open8,8,0,"$0":forc=1to8:get#8,a$:next:c=1:dn$="":forc=1to16
700 get#8,a$:dn$=dn$+a$:next:get#8,a$:get#8,a$:get#8,a$
710 dn$=dn$+a$:get#8,a$:dn$=dn$+a$:get#8,a$:get#8,a$:dn$=dn$+"/"+a$
720 get#8,a$:dn$=dn$+a$:get#8,a$:c=1:print"disk title ---> [156]"dn$:print
730 forh=1to4:get#8,a$:next
740 get#8,a$:ifst<>0then860
750 ifa$=""then860
760 ifasc(a$)<>34then740
770 get#8,a$:ifasc(a$)<>34thenpn$=pn$+a$:goto770
780 get#8,a$:ifasc(a$)=32then780
790 get#8,a$:ifa$<>""then790
800 printleft$(do$,16);" ";
810 a$=" "+ pn$:print"[145]";:gosub610
820 ifright$(pn$,4)<>".mus"then840
830 pl$(x)=pn$:x=x+1
840 pn$=""
850 ifst=0then730
860 close8:a=x:ns=a-1
870 gosub590:print"";
880 ifsk=1then1920
890 iffy=1then1890
900 iffg=1then1870
910 iffr=1thengosub1740:goto1250
920 gosub590
930 v=1:ns=a-1:q=0:np=int((a-1)/26)+1:pg=0:fori=1toa:se(i)=.:next
940 fors=55296to55335:co=int(1+rnd(1)*14):pokes,co:pokes+(999-q),co:q=q+2:next
950 print"[154]";:ep=26*pg+26:ifpg=np-1thenep=(a-1)
960 forca=pg*26+1toep
970 ifca>(pg*26+13)thenprintleft$(ov$,ca+10-(26*pg));:goto990
980 printleft$(do$,ca-(26*pg)+4);
990 print""chr$(ca+64-(26*pg))ro$+" ";
1000 ifse(ca)thenprint"";
1010 printleft$(pl$(ca),len(pl$(ca))-4)"[154]"
1020 next
1030 printleft$(do$,21);
1050 printleft$(do$,23);
1060 a$=" return[158]=menu space[158]=done"
1070 ifca>26thena$="f7[158]=more"+a$
1080 gosub610
1090 print"[156]";
1100 getan$:ifan$=""then1100
1110 ifan$="[136]"thenpg=pg+1:ifpg>(np-1)thenpg=0
1120 ifan$="[136]"thengosub590:goto950
1130 ifan$=chr$(13)thengosub590:gosub1250
1140 ifan$=" "andv=1thengosub590:goto1250
1150 ifan$=" "thenfort=1tov:pl$(t)=pn$(t):next:a=v-1:fy=1:goto1800
1160 rem done choosing
1170 ifasc(an$)<65orasc(an$)>90then1100
1180 n=asc(an$)-64+(26*pg):pn$(v)=pl$(n):se(n)=1
1190 ifn>ca-1then1100
1200 ifn<1then1100
1210 ifn>(pg*26+13)then1230
1220 fori=55418to55434:pokei+(n-(26*pg))*40,1:next:goto1240
1230 fori=55437to55453:pokei+(n-13-(26*pg))*40,1:next
1240 v=v+1:goto1100
1250 tt=0:print"[158]";:close15
1260 fors=55296to55335:pokes,0:pokes+960,0:next
1270 printchr$(14):print"";
1350 printoo$
1450 poke646,h:h=h+1:ifh=16thenh=2
1460 goto 1520
1470 poke646,14
1480 ifa$="1"thenfr=1:sk=0:fg=0:fy=0:goto640
1490 ifa$="2"thensk=0:fg=0:fy=0:sd=0:fr=0:goto1570
1500 ifa$="3"thensk=0:fg=0:fr=0:fy=0:goto640
1510 ifa$="4"thensk=1:goto1570
1520 sd=0:sk=0:fr=0:fy=0:fg=1:goto640
1530 ifa$="6"thensd=0:sk=0:fr=0:fy=0: fp=1:goto1570
1540 ifa$="7"thengosub590:print"[147][158]";chr$(142):end
1570 gosub590:a$="reading directory file.....":print"":gosub610:close8
1580 open15,8,15,"i0:":open8,8,8,"sidcat,s,r":input#15,y,b$,c,d:close15
1590 ify=62then1620
1600 iffp=1thenclose4:open4,4,7
1610 close8:open8,8,8,"sidcat,s,r": print""
1620 ify=62thenprint"":a$="you must create a file first":gosub610:close8
1630 ify=62then forde=1to2000: nextde:gosub590:close15:goto1250
1640 input#8,dn$:iffp=1thenprint#4," ":print#4,dn$:print#4," "
1650 input#8,a
1660 forwe=1toa
1670 input#8,pl$(we)
1680 iffp=1thenprint#4,pl$(we)
1690 next
1700 iffp=1thenfp=0:print#4," ":print#4," ":close4:close8:gosub590:goto1250
1710 ifsk=1thenclose8:close15:goto1800
1720 close8:close15:a=a+1:goto920
1740 gosub2820:gosub590
1750 a$="writing directory file":gosub610:close8:open15,8,15,"s0:sidcat"
1760 close15:open8,8,8,"sidcat,s,w"
1770 print#8,dn$:print#8,a-1
1780 forqw=1toa-1:print#8,pl$(qw):next
1790 close8:r=0:gosub590:return
1800 gosub590:f=1:sd=1
1810 pt$=left$(pl$(sd),len(pl$(sd))-4):f=1:rem pt$=file name to print
1820 print"[158]";:a$="[space] will go to next song":gosub610
1830 printleft$(do$,19);:a$="^ = new sid-disk":gosub610
184